package org.jxnd.biz.impl;

import java.util.List;

import org.jxnd.bean.UserInfo;
import org.jxnd.biz.IUserService;
import org.jxnd.dao.IUserDao;
import org.jxnd.dao.impl.UserDaoImpl;

public class UserServiceImpl implements IUserService{
	IUserDao dao=new UserDaoImpl();
	@Override
	public boolean getUserName(String name) {
		return dao.getUserName(name);
	}

	@Override
	public UserInfo getUserByNameAndPwd(String name, String pwd) {
		return dao.getUserByNameAndPwd(name, pwd);
	}

	@Override
	public List<UserInfo> getUserPage(int pageIndex, int pageSize) {
		return dao.getUserPage(pageIndex, pageSize);
	}

	@Override
	public boolean deleteUsers(int id) {
		return dao.deleteUsers(id)>0;
	}
}
